/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopProductSpecifications.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;



/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_product_specifications")
public class ShopProductSpecifications {


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String specificationSid;
	@Length(max=50)
	private java.lang.String commoditySid;
	private java.lang.String name;
	@Length(max=50)
	private java.lang.String enterUserid;

	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserid;
	private String unit;
	private String value;
	@Column(name="value")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}



	private java.util.Date updateDate;
	//columns END


	public ShopProductSpecifications(){
	}

	public ShopProductSpecifications(
			java.lang.String specificationSid
			){
		this.specificationSid = specificationSid;
	}



	public void setSpecificationSid(java.lang.String value) {
		this.specificationSid = value;
	}

	@Id 
	@Column(name = "specification_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getSpecificationSid() {
		return this.specificationSid;
	}

	@Column(name = "commodity_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCommoditySid() {
		return this.commoditySid;
	}

	public void setCommoditySid(java.lang.String value) {
		this.commoditySid = value;
	}

	@Column(name = "unit", unique = false, nullable = true, insertable = true, updatable = true, length = 20)
	public java.lang.String getUnit() {
		return this.unit;
	}

	public void setUnit(java.lang.String value) {
		this.unit = value;
	}

	@Column(name = "name", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getName() {
		return this.name;
	}

	public void setName(java.lang.String value) {
		this.name = value;
	}

	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}



	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "update_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserid() {
		return this.updateUserid;
	}

	public void setUpdateUserid(java.lang.String value) {
		this.updateUserid = value;
	}


	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}

}

